package com.hr.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hr.entity.AoaInMailList;
import com.hr.entity.AoaMailnumber;
import org.springframework.http.ResponseEntity;

/**
 * (AoaMailnumber)表服务接口
 *
 * @author makejava
 * @since 2022-06-16 11:44:31
 */
public interface AoaMailnumberService {

    //分页查询
    public Page<AoaMailnumber> queryByPage(Integer current , String name);

    /**
     * 查询单条数据
     * @param id
     * @return
     */
    public AoaMailnumber queryOne(Long id);

    /**
     * 修改用户
     * @param mailnumber AoaMailnumber
     * @return
     */
    public ResponseEntity<String> editMailnumber(AoaMailnumber mailnumber);

    /**
     * 添加数据
     * @param aoaMailnumber AoaMailnumber
     * @return
     */
    public ResponseEntity saveData(AoaMailnumber aoaMailnumber);

    /**
     * 根据用户ID查询邮箱内部消息列表
     */
    public Page<AoaInMailList> getMailList(Long id, Integer current);

    /**
     * 根据id列表删除数据
     */
    public ResponseEntity delMail(Integer[] arr);
}
